package com.jiutong.meipenggang.adapters;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jiutong.meipenggang.R;
import com.jiutong.meipenggang.entity.AvailableBalanceBean;

import java.util.List;

public class AvailableBalanceAdapter extends BaseQuickAdapter<AvailableBalanceBean> {

    public AvailableBalanceAdapter(Context context, int layoutResId, List<AvailableBalanceBean> data) {
        super(context, layoutResId, data);
    }



    @Override
    protected void convert(BaseViewHolder baseViewHolder, AvailableBalanceBean availableBalanceBean) {
        baseViewHolder.setText(R.id.tv_money, availableBalanceBean.getMoney())
                .setText(R.id.tv_message, availableBalanceBean.getMessage())
                .setText(R.id.tv_date, availableBalanceBean.getDate());
    }
}
